package com.eastfair.projectcore.service;

import com.eastfair.boot.service.SuperCacheService;
import com.eastfair.boot.service.SuperService;
import com.eastfair.core.base.R;
import com.eastfair.model.TenantRuleVO;
import com.eastfair.projectcore.entity.TenantRule;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 租户规则表（合并数据用）
 * </p>
 *
 * @author ligang
 * @date 2022-07-12
 */
public interface TenantRuleService extends SuperService<TenantRule> {

    /**
     * 执行子系统共享表
     * @param subSystemIds
     * @return
     */
    R executeTenantTable(List<Long> subSystemIds,String tableName);


    /**
     * 执行子系统共享表
     * @return
     */
    R<List<TenantRuleVO>> queryTenantTable();
}
